Keyboard Shortcuts

ℹ️ Note: Keyboard shortcuts on this wiki are written in lowercase notation. A single letter (e.g. e) represents the normal key. Combination shortcuts are written with a plus sign + and lowercase letters (e.g. Shift+e, Alt+e, Alt+Shift+e).

Commands Bound to Letters

Key Key Command Shift + Key Shift + Key Command Alt + Key Alt + Key Command Ctrl + Key Ctrl + Key Command
a Apply Shift+a Abilities (status screen) Alt+a Adjust Ctrl+a Repeat
b Take items out of bag in inventory Shift+b Put items into Bag in inventory     Ctrl+b Break
c Close door Shift+c Chat Alt+c Commands menu Ctrl+c Call
d Drop Shift+d Drop multiple Alt+d Dip Ctrl+d Kick
e Eat Shift+e Engrave Alt+e Wipe face Ctrl+e Detect (wizard mode only)
f Fire Shift+f Fight Alt+f Force lock Ctrl+f Reveal map (wizard mode only)
g Go mode — Rush Shift+g Go mode — Run Alt+g Genocided monsters Ctrl+g Dig
h Help Shift+h   Alt+h Handedness Ctrl+h  
i Inventory Shift+i Inventory of specific types Alt+i Invoke Ctrl+i Identify (wizard mode only)
j Jump Shift+j   Alt+j Jump Ctrl+j  
k Kick (when Vi-keys are disabled) Shift+k   Alt+k Vanquished creatures Ctrl+k  
l Loot Shift+l Look Alt+l Loot Ctrl+l Light/Snuff out
m Move mode — Rush Shift+m Move mode — Run Alt+m Genesis (wizard mode only) Ctrl+m  
n Number of actions1 Shift+n Name Alt+n Number of actions (alternate) Ctrl+n Annotate dungeon level
o Open door Shift+o Options Alt+o Offer sacrifice Ctrl+o Dungeon overview
p Pay bill Shift+p Put on Alt+p Pray Ctrl+p Previous message
q Drink (quaff) Shift+q Quiver Alt+q Quit Ctrl+q  
r Read Shift+r Remove Alt+r Rub Ctrl+r Redraw screen
s Search Shift+s Skills Alt+s Save Ctrl+s Sit
t Throw Shift+t Take off Alt+t Take off many Ctrl+t Teleport
u Untrap Shift+u   Alt+u Untrap Ctrl+u  
v Version info Shift+v Game history info Alt+v GnollHack library info Ctrl+v Level teleport (wizard mode only)
w Wield weapon Shift+w Wear armor Alt+w Wear many Ctrl+w Wish (wizard mode only)
x Swap weapons Shift+x Mix spells Alt+x Examine Ctrl+x Dual weapon mode
y Take loot out of container on floor (yank) Shift+y Put loot into container on floor (Yank) Alt+y Yell for pets Ctrl+y Yell for pets
z Zap wand Shift+z Cast spell Alt+z View spell Ctrl+z  
  • Commands in italic are new commands in GnollHack that do not appear in NetHack.
  • 1 Number of actions works like this: You first press n, then write the number of actions in numerals, and then choose the action. For example, n20s searches 20 times.

Double Modifier Commands Bound to Letters

Alt + Shift + Key Alt + Shift + Key Command
Alt+Shift+a Annotate dungeon level
Alt+Shift+e Engrave quick (use preset writing)
Alt+Shift+m Use monster ability
Alt+Shift+n Name a monster or object class
Alt+Shift+p Apply Wielded Polearm1
Alt+Shift+r Mount or dismount a saddled steed (Ride)
Alt+Shift+t Empty a container (Tip)
Alt+Shift+w Wield a previously wielded weapon
Alt+Shift+x Apply a pick-axe or cutting tool quick
  • Commands in italic are new commands in GnollHack that do not appear in NetHack.
  • 1 The polearm can also be a swap weapon.

Other Commands

Key Key Command
, Pick up
; Pick up and stash
. Wait
: Near look (at the ground)
_ Travel
< Go up
> Go down
/ Far look
* Equipment (worn items)
" Show worn amulet
# Extended command
? Help
+ Spell menu
( List tools
) Show weapon
= Show worn rings
[ Show worn armor
} Character details (Describe your character)
  • Commands in italic are new commands in GnollHack that do not appear in NetHack.

Movement By Arrow Keys

Key Direction Ctrl + Key Direction Alt + Key Direction
↑ ↑ Ctrl + ↑ ↖ Alt + ↑ ↗
↓ ↓ Ctrl + ↓ ↙ Alt + ↓ ↘
← ← Ctrl + ← ↖ Alt + ← ↙
→ → Ctrl + → ↗ Alt + → ↘

Please see the table below for how the keys map by direction:

Ctrl + ↑
Ctrl + ←
↑
Alt + ↑
Ctrl + →
←
 
→
Ctrl + ↓
Alt + ←
↓
Alt + ↓
Alt + →

Movement by Number Pad

While Num Lock is on, you can use the number pad for movement.

  • 1–4, 6–9 for directions.
  • 5 in the middle enables the run mode.

Movement by Regular Number Keys

The directions work also without a number pad with regular number keys:

7 8 9
4 5 6
1 2 3

5 in the middle enables the run mode.

Zoom and View Controls

You can adjust the map zoom level using the following keyboard shortcuts:

Key Alternate Key Command
Ctrl + + Alt + + Zoom in
Ctrl + - Alt + - Zoom out
Ctrl + 0 Alt + 0 Reset zoom to normal
Ctrl + . Alt + . Toggle zoom to fit screen (minimap mode)
  • Commands in italic are new commands in GnollHack that do not appear in NetHack.

Vi-Keys

You can activate vi-keys in one of the following ways:

  • In settings, enable Default Vi-Keys and ensure that number_pad is not set in options.
  • In settings, keep Default Vi-Keys disabled and set number_pad:0 in options.

When you have vi-keys enabled, you can use the following keys for movement:

y k u
h   l
b j n

Alternate Key Bindings When Vi-Keys Are Enabled

Normal Key Command Alternate Key
b Take items out of bag in inventory Alt+Shift+g
Shift+b Put items into Bag in inventory Alt+Shift+f
Ctrl+b Break Alt+Shift+b
j Jump Alt+j
k Kick Ctrl+d
l Loot Alt+l
Ctrl+l Light/Snuff out Alt+Shift+i
n Number of actions Automatic1
Shift+n Name Alt+Shift+n
u Untrap Alt+u
y Take loot out of container on floor (yank) Alt+Shift+d
Shift+y Put loot into container on floor (Yank) Alt+Shift+c
  • Commands in italic are new commands in GnollHack that do not appear in NetHack.
  • 1 When you press a number key, the game automatically assumes that it's the number of actions command.

Legacy Keyboard Shortcuts

The following keyboard shortcuts are not supported by the modern GnollHack clients and are only available in the legacy Windows version GnollHack:

Key Shortcut Command
Alt+b Toggle hitpoint bars
Alt+Shift+y Toggle buff timers
  • Commands in italic are new commands in GnollHack that do not appear in NetHack.